<!DOCTYPE html>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Date"%>
<%@page import="weaver.hrm.User"%>
<%@page import="com.weaver.formmodel.mobile.manager.MobileUserInit"%>
<%@page import="weaver.cowork.CoworkItemMarkOperation"%>
<%@page import="java.util.List"%>
<%@page import="weaver.cowork.CoworkLabelVO"%>
<%@page import="weaver.cowork.CoTypeComInfo"%>
<%@page import="weaver.general.Util"%>
<%@page import="weaver.systeminfo.SystemEnv"%>
<%@page import="weaver.hrm.resource.ResourceComInfo"%>
<%@page import="weaver.conn.RecordSet"%>
<jsp:useBean id="mas" class="weaver.email.service.MailAccountService" scope="page" />
<jsp:useBean id="mcs" class="weaver.email.service.MailConfigService" scope="page" />


<%
    //Auth a = uca.initCloudStore(request,response);
	//用户ID：a.getUserId() 部门ID：a.getDepId() 公司ID：a.getComId() 应用编码：a.getCode()
	User user = MobileUserInit.getUser(request, response);
	String v = new Date().getTime()+"";
	ResourceComInfo resourceComInfo = new ResourceComInfo();
	String url = resourceComInfo.getMessagerUrls(user.getUID()+"");
	
	String receivemailids =  mas.getAllAccountIds(user.getUID());
	
	int detailEmailId = Util.getIntValue(Util.null2String(request.getParameter("detailid")));
	String detailSubject = "";
	int detailFolderid = -999;
	int detailIsinternal = 0;
	if(detailEmailId>0){
		String sql = "select subject,folderid,isinternal from mailresource where id="+detailEmailId;
		RecordSet rs = new RecordSet();
		rs.executeSql(sql);
		if(rs.next()){
			detailSubject = rs.getString("subject");
			detailFolderid = rs.getInt("folderid");
			detailIsinternal = rs.getInt("isinternal");
			if(detailIsinternal<0){
				detailIsinternal = 0;
			}
		}else{
			detailEmailId = -1;
		}
	}
	Map configMap = mcs.getMailConfig();
	int mailType = Util.getIntValue(Util.null2String(configMap.get("mailType")), 2);
	int isAll = Util.getIntValue(Util.null2String(configMap.get("isAll")), 2);
	int outterMail = Util.getIntValue(Util.null2String(configMap.get("outterMail")), 2);
	int autoreceive = Util.getIntValue(Util.null2String(configMap.get("autoreceive")), 2);
	if(outterMail == 0 || autoreceive == 0){
		receivemailids = "";
	}
%>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>邮件</title>
<script>
	if(typeof(Mobile_NS) == 'undefined'){
		Mobile_NS = {};
	}
	var userid = "<%=user.getUID()%>";
</script>

<link rel="stylesheet" href="/mobilemode/apps/e-cology/email/css/component.css?v=2016_08_25_01" >
<link rel="stylesheet" href="/mobilemode/js/mobiscroll/css/mobiscroll-2.5.2-min.css?v=2016_08_25_01" >
<link rel="stylesheet" href="/mobilemode/apps/e-cology/email/css/appHomepage.css?v=2016_08_25_01" >
   
<script src="/mobilemode/js/zepto/zepto.min_wev8.js?v=2016_08_25_01"></script>
<script src="/mobilemode/js/zepto/toucher_wev8.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/js/fastclick.min_wev8.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/js/iscroll-min.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/email/js/modernizr.custom_wev8.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/email/js/autoComplete.js?v=2016_08_25_01"></script>
<script src="/mobilemode/js/mobiscroll/mobiscroll-2.5.2-min.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/email/js/showbrowser_wev8.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/email/js/bonzo.js?v=2016_08_25_01"></script>
<script src="/mobilemode/apps/e-cology/email/js/appHomepage.js?v=2016_08_25_01"></script>
<!-- 富文本编辑器的js不能缓存 -->
<script src="/mobilemode/apps/e-cology/email/js/squire.js?v=2016051201"></script>


   <style type="text/css">
   </style>
   <script>
</script>
</head>
<body>
<input type="hidden" id="userinfo" showname="<%=user.getLastname() %>" value="<%=user.getUID() %>" >
<input type="hidden" id="receivemailids" value="<%=receivemailids %>" >
<input type="hidden" id="detailEmailId" value="<%=detailEmailId %>" >
<input type="hidden" id="detailSubject" value="<%=detailSubject %>" >
<input type="hidden" id="detailFolderid" value="<%=detailFolderid %>" >
<input type="hidden" id="detailIsinternal" value="<%=detailIsinternal %>" >
<div id="st-container" class="st-container">
	<nav class="st-menu st-effect-2" id="menu-2">
		<img src="<%=url %>" style="width:40px;border-radius:100%;border:0px solid #444;margin:12px 0 8px 0;"/>
		
		<!-- 存储着当前哪个panel被选中以及每个panel对应的分页信息 -->
		<ul id="navUl" currentpanelid="mainList_1" pagesize="20" >
			<li class="mainList_1" folderid="0" isInternal="" star="" pageindex="1" >
				<img src="/mobilemode/apps/e-cology/email/imgs/w7.gif"/>
				<div>收件箱</div>
			</li>
			<li class="mainList_2" folderid="-1" isInternal="" star="" pageindex="1" >
				<img src="/mobilemode/apps/e-cology/email/imgs/w2.gif"/>
				<div>已发送</div>
			</li>
			<li class="mainList_3" folderid="-2" isInternal="" star="" pageindex="1">
				<img src="/mobilemode/apps/e-cology/email/imgs/w5.gif"/>
				<div>草稿箱</div>
			</li>
			<li class="mainList_4" folderid="-3" isInternal="" star="" pageindex="1">
				<img src="/mobilemode/apps/e-cology/email/imgs/w1.gif"/>
				<div>垃圾箱</div>
			</li>
			<%if(mailType == 2 || mailType == 1){ %>
				<li class="mainList_5"  folderid="" isInternal="1" star="" pageindex="1">
					<img src="/mobilemode/apps/e-cology/email/imgs/w6.gif"/>
					<div>内部邮件</div>
				</li>
			<%} %>
			
			<li class="mainList_6"  folderid="" isInternal="" star="1" pageindex="1">
				<img src="/mobilemode/apps/e-cology/email/imgs/w4.gif"/>
				<div>标星邮件</div>
			</li>	
			<li class="mainList_7" pageindex="1">
				<img src="/mobilemode/apps/e-cology/email/imgs/w3.gif"/>
				<div>联系人</div>
			</li>
		</ul>
		<ul>
		</ul>
	</nav>
	
	<div id="batchMenu1" class="pop_menu">
		<div class="arrow"></div>
		<ul>
		<%if(mailType == 2 || mailType == 1){ %>
    		<li mtype="in" class="new"><img src="/mobilemode/apps/e-cology/email/imgs/w6.gif"/><div>新邮件(内部)</div></li>
    		<%} if(mailType == 2 || mailType == 0){%>
    		<li mtype="out" class="new"><img src="/mobilemode/apps/e-cology/email/imgs/w5.gif"/><div>新邮件(外部)</div></li>
    		<%} %>
    		<li mtype="del" class="del"><img src="/mobilemode/apps/e-cology/email/imgs/w1.gif"/><div>删除</div></li>
    		<li mtype="delforever" class="delforever"><img src="/mobilemode/apps/e-cology/email/imgs/w1.gif"/><div>永久删除</div></li>
    		<li mtype="unread" class="unread"><img src="/mobilemode/apps/e-cology/email/imgs/w8.gif"/><div>标未读</div></li>
    		<li mtype="read" class="read"><img src="/mobilemode/apps/e-cology/email/imgs/w9.gif"/><div>标已读</div></li>
    		<li mtype="star" class="star"><img src="/mobilemode/apps/e-cology/email/imgs/w10.gif"/><div>标星邮件</div></li>
    		<li mtype="unstar" class="unstar"><img src="/mobilemode/apps/e-cology/email/imgs/w4.gif"/><div>取消标星</div></li>
    	</ul>
	</div>
	
	<div class="pageHeader" >
		<div onclick="showBatchMenu(event)" class="btnMailBatchOpt"></div>
		<div id="btnMailbox" class="hamburger hamburger--elastic">
			<div class="hamburger-box">
		  		<div class="hamburger-inner"></div>
			</div>
	  	</div>
		<div class="pageHeaderLeft" >收件箱</div>
	</div>
	
	<!-- 收件箱  -->
	<%
	String css1 = "";
	if(detailEmailId>0){
		css1 = " hideLeft";
	} %>
	<div id="mainList_1" class="st-pusher currentPanel<%=css1 %>">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="1" class="keyword" type="" placeholder="Search..."/>
							<a onclick="toShowSearch()" class="as_btn">
								<div class="line one"></div>
								<div class="line two"></div>
								<div  class="line three"></div>
							</a>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown1" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel1" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,1);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	<!-- 已发送  -->
	<div id="mainList_2" class="st-pusher hide">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="2" class="keyword" type="" placeholder="Search..."/>
							<a onclick="toShowSearch()" class="as_btn">
								<div class="line one"></div>
								<div class="line two"></div>
								<div  class="line three"></div>
							</a>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown2" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel2" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,2);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	
	
	<!-- 草稿箱  -->
	<div id="mainList_3" class="st-pusher hide">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="3" class="keyword" type="" placeholder="Search..."/>
							<a onclick="toShowSearch()" class="as_btn">
								<div class="line one"></div>
								<div class="line two"></div>
								<div  class="line three"></div>
							</a>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown3" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel3" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,3);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	<!-- 垃圾箱  -->
	<div id="mainList_4" class="st-pusher hide">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="4" class="keyword" type="" placeholder="Search..."/>
							<a onclick="toShowSearch()" class="as_btn">
								<div class="line one"></div>
								<div class="line two"></div>
								<div  class="line three"></div>
							</a>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown4" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel4" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,4);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	
	<!-- 内部邮件  -->
	<div id="mainList_5" class="st-pusher hide">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="5" class="keyword" type="" placeholder="Search..."/>
							<a onclick="toShowSearch()" class="as_btn">
								<div class="line one"></div>
								<div class="line two"></div>
								<div  class="line three"></div>
							</a>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown5" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel5" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,5);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	
	<!-- 标星邮件  -->
	<div id="mainList_6" class="st-pusher hide">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="6" class="keyword" type="" placeholder="Search..."/>
							<a onclick="toShowSearch()" class="as_btn">
								<div class="line one"></div>
								<div class="line two"></div>
								<div  class="line three"></div>
							</a>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown6" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel6" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,6);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	<!-- 标星邮件  -->
	<div id="mainList_7" class="st-pusher hide">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div class="listSearch">
						<form disabledEnterSubmit>
							<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
							<input type="search" groupid="7" class="keyword" type="" placeholder="Search..."/>
						</form>
					</div>
					<div class="scroll_wrapper">
						<div class="scroll_scroller">
							<div id="pullDown7" class="loading">
								<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
							</div>
							<ul id="listpanel7" class="list mailList" swipe="true"></ul>
							<div class="mec_refresh_loading" >
								<div class="spinner">
									<div class="bounce1"></div>
									<div class="bounce2"></div>
									<div class="bounce3"></div>
								</div>
							</div>
							<div  class="moreData_btn" onclick="pageList(this,7);">加载更多</div>
							<div  class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
	</div><!-- /st-pusher -->
	
	
	<%
	String css2 = "hide";
	String css3 = "hide";
	if(detailEmailId>0){
		if(detailFolderid==-2){
			css3 = "";
		}else{
			css2 = "";
		}
	} %>
	
	<!-- 邮件详细显示页面  -->
	<div id="detailPanel" class="<%=css2 %>">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<div class="pageBody">
					<div id="detailContent">
						<div class="row index0">
							<div class="fieldvalue"></div>
							<div class="clear"></div>
						</div>
						<div class="row index1">
							<div class="fieldlable">发件人：</div>
							<div class="fieldvalue"></div>
							<div class="clear"></div>
						</div>
						<div class="row index2">
							<div class="fieldlable">收件人：</div>
							<div class="fieldvalue"></div>
							<div class="clear"></div>
						</div>
						<div class="row index3">
							<div class="fieldlable">抄送人：</div>
							<div class="fieldvalue"></div>
							<div class="clear"></div>
						</div>
						<div class="row index4">
							<div class="fieldlable">密送人：</div>
							<div class="fieldvalue"></div>
							<div class="clear"></div>
						</div>
						<div class="row index5">
							<div class="fieldlable">时间：</div>
							<div class="fieldvalue"></div>
							<div class="clear"></div>
						</div>
						<div class="row index6">
							<div class="fieldlable">附件：</div>
							<div class="fieldvalue" onclick="showFjDetail()"></div>
							<div class="clear"></div>
							<div class="fjDetail hide"></div>
							<div class="clear"></div>
						</div>
					</div>
					<div id="mailContentDiv">
						<div class="content index7">
							<div class="fieldvalue"></div>
							<div style="display: none;">
								<form target="emailContentIframe" id="emailContentForm" action="" method="post"></form>
								<iframe id="emailContentIframe" name="emailContentIframe" ></iframe>
							</div>
						</div>
					</div>
					<div class="mec_refresh_loading" >
						<div class="spinner">
							<div class="bounce1"></div>
							<div class="bounce2"></div>
							<div class="bounce3"></div>
						</div>
					</div>
				</div>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
		<!--<div id="btnFooter"></div>-->
		<div id="pageFooter">
			<ul class="btnsWarp" ></ul>
			<ul>
				<li class="star" onclick="changeStarDetail(this);"><img src="/mobilemode/apps/e-cology/email/imgs/1blue.gif"/></li>
				<li onclick="toShowFooterPop(1);" ><img src="/mobilemode/apps/e-cology/email/imgs/3blue.gif"/></li>
				<li onclick="toDelEmail()"><img src="/mobilemode/apps/e-cology/email/imgs/7blue.gif"/></li>
				<li onclick="toShowFooterPop(2,<%=mailType %>);"><img src="/mobilemode/apps/e-cology/email/imgs/5blue.gif"/></li>
			</ul>
		</div>
	</div><!-- /st-pusher -->
	
	<!-- 邮件编辑页面 -->
	<div id="detailPanelEdit" class="<%=css3 %>">
		<div class="st-content"><!-- this is the wrapper for the content -->
			<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
				<form action="/mobilemode/apps/e-cology/email/SaveEmailOperation.jsp?operation=saveEmail" method="post" name="weaver" id="weaver" target="hidden_frame">
					<div class="pageBody">
						<div class="scroller">
						<div id="detailContentEdit">
							<div class="row index1">
								<input type="hidden" id="userid" name="userid" value="<%=user.getUID() %>">
								<input type="hidden" id="folderid" name="folderid" value="-1">
								<input type="hidden" id="savedraft" name="savedraft" value="">
								<input type="hidden" id="mailid" name="mailid" value="">
								<input type="hidden" name="from_mobile" id="from_mobile" value="1" />
								<input type="hidden" name="location" id="location" value="1" />
								<input type="hidden" name="isInternal" id=isInternal  value="1" />
								<input type="hidden" name="flag" id="flag" value="" />
								<!-- mobile_flag //内容来自于手机邮件的什么操作【-1---新建,1---回复，2---回复全部,3---转发,4---草稿】-->
								<input type="hidden" name="mobile_flag" id="mobile_flag" value="" />
								<input type="hidden" name="mobile_mailid" id="mobile_mailid" value="" />
								<input type="hidden" name="savesend" id="savesend" value="1" /><!-- 保存到发件箱 -->
								<input type="hidden" name="autoSave" id="autoSave" value="" />
								
								<div class="fieldlable">发件人：</div>
								<div class="fieldvalue">
									<input type="hidden" name="hrmAccountid" id="hrmAccountid" value="<%=user.getUID() %>">
									<span><%=user.getLastname() %></span>
								</div>
								<div class="fieldvalue1">
									<div class="Design_FSelect_Fielddom">
										<select name="mailAccountId" id="mailAccountId">
										</select>
									</div>
									<div id="mailAccountId_Msg" class="warnMsg">您还未创建邮件账户.</div>
								</div>
								<div class="clear"></div>
							</div>
							<div class="row index2">
								<div class="fieldlable" onclick="consoleRow();">收件人：</div>
								<div class="fieldvalue">
									<div class="browserBtn" onclick="toShowBrowser(this,'internalto',<%=isAll %>);" ></div>
									<input type="hidden" id="internalto" name="internalto" value="">
									<input type="hidden" id="internaltodpid" name="internaltodpid" value="">
									<input type="hidden" id="internaltoall" name="internaltoall" value="">
									<span class="browserSpan" id="internaltoSpan" name="internaltoSpan"></span>
									<span>&nbsp;</span>
								</div>
								<div class="fieldvalue1">
									<input type="hidden" name="to" id="to" value="" fieldlabel="收件人" >
									<input class="needsclick"  placeholder="收件人" type="text" name="to_input" id="to_input" onkeyup="runAutoComp(autoComplete1,event);" value="" fieldlabel="收件人" onfocus="showContent1(1)" onblur="showContent1(2)" >
									<div id="to_div"></div>
        							<div class="auto_hidden" style="" id="to_auto"></div>
								</div>
								<div class="clear"></div>
							</div>
							<div class="row index3">
								<div class="fieldlable">抄送：</div>
								<div class="fieldvalue">
									<div class="browserBtn" onclick="toShowBrowser(this,'internalcc',<%=isAll %>);" ></div>
									<input type="hidden" id="internalcc" name="internalcc" value="">
									<input type="hidden" id="internalccdpid" name="internalccdpid" value="">
									<input type="hidden" id="internalccall" name="internalccall" value="">
									<span class="browserSpan" id="internalccSpan" name="internalccSpan"></span>
									<span>&nbsp;</span>
								</div>
								<div class="fieldvalue1">
									<input type="hidden" name="cc" id="cc" value="" fieldlabel="抄送人" >
									<input class="needsclick"  placeholder="抄送人" type="text" name="cc_input" id="cc_input" onkeyup="runAutoComp(autoComplete2,event);" value="" fieldlabel="抄送人" onfocus="showContent1(1)" onblur="showContent1(2)" >
									<div id="cc_div"></div>
        							<div class="auto_hidden" style="" id="cc_auto"></div>
								</div>
								<div class="clear"></div>
							</div>
							<div class="row index4">
								<div class="fieldlable">密送：</div>
								<div class="fieldvalue">
									<div class="browserBtn" onclick="toShowBrowser(this,'internalbcc',<%=isAll %>);" ></div>
									<input type="hidden" id="internalbcc" name="internalbcc" value="">
									<input type="hidden" id="internalbccdpid" name="internalbccdpid" value="">
									<input type="hidden" id="internalbccall" name="internalbccall" value="">
									<span class="browserSpan" id="internalbccSpan" name="internalbccSpan"></span>
									<span>&nbsp;</span>
								</div>
								<div class="fieldvalue1">
									<input type="hidden" name="bcc" id="bcc" value="" fieldlabel="密送人" >
									<input class="needsclick"  placeholder="密送人" type="text" name="bcc_input" id="bcc_input" onkeyup="runAutoComp(autoComplete3,event);" value="" fieldlabel="密送人" onfocus="showContent1(1)" onblur="showContent1(2)" >
									<div id="bcc_div"></div>
        							<div class="auto_hidden" style="" id="bcc_auto"></div>
								</div>
								<div class="clear"></div>
							</div>
							
							<div class="row index5 same">
								<div class="fieldlable">主题：</div>
								<div class="fieldvalue"><input class="needsclick" placeholder="请输入..." type="text" name="subject" id="subject" value="" fieldlabel="主题" onfocus="showContent1(1)" onblur="showContent1(2)" ></div>
								<div class="clear"></div>
							</div>
							
							<div class="row index6 same">
								<div class="fieldlable">重要性：</div>
								<div class="fieldvalue">
									<input type="hidden" id="priority" name="priority" value="3">
									<ul class="priorityItme" >
										<li type="button" class="checkboxBtn selected" onclick="changeBoxVal(this,'priority',3);">普通</li>
										<li type="button" class="checkboxBtn" onclick="changeBoxVal(this,'priority',1);">紧急</li>
									</ul>
								</div>
								<div class="clear"></div>
							</div>
							<div class="row index7 same">
								<div class="fieldlable">附件：</div>
								<div class="fieldvalue" >
									<div class="Design_FFile_EntryWrap" id="FileEntryWrapxgfj">
										<div class="Design_FFile_EntryBorder" id="fileBorderxgfj">
											<div class="Design_FFile_EntryBtn" id="entryBtnxgfj" style="width: 40px; height: 45px;">
												<input id="xgfj" type="file" name="file" filenum="0" class="upLoadFile" single="single" data-role="none">
											</div>
										</div>
									</div>
									<input type="hidden" id="olduuids"   >
									<input type="hidden" id="accids" name="accids" value="">
									<input type="hidden" id="delaccids" name="delaccids" value="">
								</div>
								<div class="clear"></div>
								<div class="browserSpan" id="accstr" name="accstr"></div>
							</div>
						</div>
						
						<div id="mailContentDivEdit">
							<div id="index7_bef" style="display: none;height: 20px;" >&nbsp;</div>
							<div class="content index7">
								<div class="fieldvalue">
									<textarea rows="4" class="needsclick"  name="mouldtext"  id="mouldtext" style="width: 100%"></textarea>
								</div>
								<div id="mailContentDivEditPre" style="display: none;"></div>
								<div id="mailContentDivSubmitPre" style="display: none;"></div>
							</div>
							<div id="mouldtexteditor" class="needsclick"></div>
							<div class="mouldtextMsg">请输入...</div>
						</div>
						<div class="mec_refresh_loading" >
							<div class="spinner">
								<div class="bounce1"></div>
								<div class="bounce2"></div>
								<div class="bounce3"></div>
							</div>
						</div>
						</div>
					</div>
				</form>
			</div><!-- /st-content-inner -->
		</div><!-- /st-content -->
		<div id="btnFooterEdit">
			<button  type="button" onclick="saveEmail(1);" >发送</button>
			<button  type="button" onclick="saveEmail(2);" >草稿</button>
		</div>
	</div><!-- /st-pusher -->
	
	<!--搜索条件部分-->
	<div id="searchDiv"  class="hide">
		<div class="detail-wrap">
			<div class="scroll_scroller">
				<div class="searchTitle" onclick="doHistoryBack()">邮件搜索</div>
					<div class="tabContainer">
						<div class="Design_FInputText_Field Formfield-Wrap " id="divC6EF00816D20000172D58600D18A81D0">
							<div class="Design_FInputText_Fieldlabel Formfield-Label">主题:</div>
							<div class="Design_FInputText_Fielddom Formfield-Content">
								<input class="needsclick" placeholder="请输入..." type="text" name="fieldname_title" id="C6EF00816D20000172D58600D18A81D0" value="" data-role="none" fieldlabel="标题 :" require="">
								<div class="Design_FInputText_FieldSub" id="fieldSubC6EF00816D20000172D58600D18A81D0"></div>
							</div>
						</div>

						<div class="Design_FInputText_Field Formfield-Wrap " id="div90C98DF8B3B64B0589FE08F0BDF72326">
							<div class="Design_FInputText_Fieldlabel Formfield-Label">发件人:</div>
							<div class="Design_FInputText_Fielddom Formfield-Content">
								<input class="needsclick" placeholder="请输入..." type="text" name="fieldname_from" id="90C98DF8B3B64B0589FE08F0BDF72326" value="" data-role="none" fieldlabel="发件人 :" require="">
								<div class="Design_FInputText_FieldSub" id="fieldSub90C98DF8B3B64B0589FE08F0BDF72326"></div>
							</div>
						</div>
                        
			                        <div class="Design_FInputText_Field Formfield-Wrap " id="div5645dc2b-caa4-47c4-9318-3ec5c5b09068">
			                            <div class="Design_FInputText_Fieldlabel Formfield-Label">收件人:</div>
			                            <div class="Design_FInputText_Fielddom Formfield-Content">
			                                <input class="needsclick" placeholder="请输入..." type="text" name="fieldname_to" id="5645dc2b-caa4-47c4-9318-3ec5c5b09068" value="" data-role="none" fieldlabel="收件人 :" require="">
			                                <div class="Design_FInputText_FieldSub" id="fieldSub5645dc2b-caa4-47c4-9318-3ec5c5b09068"></div>
			                            </div>
			                        </div>
		
						<div id="divC6EEEF6248B00001D0A9145013F01B74"
							class="Design_FCheckbox_Field ">
							<div class="Design_FCheckbox_Fieldlabel Formfield-Label">状态:</div>
							<div class="Design_FCheckbox_Fielddom FCheckBoxLayouthorizontal">
								<div cb-type="0" class="FCheckboxContainer">
									<ul id="status">
										 <li readonly="0" class="" data-value="all"><div>所有</div></li>
								         <li readonly="0" class="" data-value="unread"><div>未读</div></li>
								         <li readonly="0" class="" data-value="read"><div>已读</div></li>
								         <li readonly="0" class="" data-value="bx"><div>标星</div></li>
									</ul>
								</div>
								<input type="text" require="" fieldlabel="标签 :"
									id="C6EEEF6248B00001D0A9145013F01B74" data-role="none"
									value="" name="fieldname_id" style="display: none;">
							</div>
						</div>
		
						<div class="Design_FInputText_Field Formfield-Wrap "
							id="divC71073AC7AB00001971B5ECAC7A0BB80">
							<div class="Design_FInputText_Fieldlabel Formfield-Label">
								开始日期
							</div>
							<div class="Design_FInputText_Fielddom Formfield-Content">
								<input htmltype="2" placeholder="请输入..." type="text" name="startdate" id="startdate" value="" class="needsclick" fieldlabel="开始日期" data-dwro="false" readonly="">
							</div>
						</div>
						
						<div class="Design_FInputText_Field Formfield-Wrap ">
							<div class="Design_FInputText_Fieldlabel Formfield-Label">
								结束日期
							</div>
							<div class="Design_FInputText_Fielddom Formfield-Content">
								<input htmltype="2" placeholder="请输入..." type="text" name="enddate" id="enddate" value="" class="needsclick" fieldlabel="结束日期" data-dwro="false" readonly="">
							</div>
						</div>

						<div id="fButtons" class="fButtons">
							<div title="搜索" action="1" onclick="doSearch();" class="fButton fSubmitButton">搜索</div>
						</div>
				</div>
			</div>
		</div>
	</div>
	
	<div id="browserType" class="hide">
		<ul id="browserTypeUl">
			<li type="1" onclick="openBrowserByType(this);"><div>人&nbsp;&nbsp;员</div></li>
			<li type="2" onclick="openBrowserByType(this);"><div>部&nbsp;&nbsp;门</div></li>
			<li type="3" onclick="openBrowserByType(this);"><div>所有人</div></li>
			<li type="0" onclick="openBrowserByType(this);"><div>取&nbsp;&nbsp;消</div></li>
		</ul>
	</div>
	
	<div id="browserFrames" class="hide">
		<iframe id="hrmBrowserFrame" class="st-frame st-frame1 lazy-frame" frameborder="0" scrolling="auto" src="" lazy-src="/mobilemode/apps/browser/hrmBrowser.jsp?noHeader=1&isOpenedOnTopfloor=1"></iframe>
		<iframe id="commonBrowserFrame" class="st-frame st-frame1 lazy-frame" frameborder="0" scrolling="auto" src="" lazy-src="/mobilemode/apps/browser/commonBrowser.jsp?noHeader=1&isOpenedOnTopfloor=1"></iframe>
	</div>
	<iframe name='hidden_frame' id="hidden_frame" style='display:none'></iframe>
	<form action="/mobilemode/apps/e-cology/email/EmailFileUpload.jsp" enctype="multipart/form-data"  id="dataForm" name="dataForm" method="post" target="hidden_frame">
		<input id="uploaddata" type="hidden" name="uploaddata" />
		<input id="uploadname" type="hidden" name="uploadname" />
		<input id="isfirst" type="hidden" name="isfirst" value="0" />
		<input id="fileindex" type="hidden" name="fileindex" value="0" />
		<input id="fileuuid" type="hidden" name="fileuuid" value="" />
	</form>
	<div id="footerBg" class="hide" ></div>
	<div id="footerDiv" class="hide" onclick="toHideFooterPop();">
		<div class="footer-up">
			<div class="footerTop" >
				<ul class="footer-item">
					<!-- <li><div class="menuText">新建反馈</div><img src="/mobilemode/apps/assets/appbar.cart.png" class="menuIcon"></li> -->
				</ul>
			</div>
			<div class="footerCancel" onclick="toHideFooterPop();">取消</div>
		</div>
	</div>
	
	
	<div class="confirmDialog hide"  >
		<div class="innerDiv">
		<div class="title">信息确认</div>
		<div class="content" ></div>
		<div class="buttons">
			<div class="cancelbtn">取消</div>
			<div class="okbtn">确定</div>
		</div>
		</div>
	</div>
	
	<div class="alertDialog hide"  >
		<div class="innerDiv">
		<div class="title">消息</div>
		<div class="content" ></div>
		<div class="buttons">
			<div class="okbtn">确定</div>
		</div>
		</div>
	</div>
</div><!-- /st-container -->

</body>
</html>




